<?php
use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel frontend\controllers\search\NeddsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '寻课厅-所有需要收集的课程';
$this->registerMetaTag([
    'name' => 'keywords',
    'content' => 'IT课程,IT学习,产品经理,编程学习,android,ios,php,java,python,html5,cocos2dx,平面设计,交互设计'
]);
$this->registerMetaTag([
    'name' => 'description',
    'content' => '尚好课致力于网络课程共享,也负责用户提供课程需求进行收集共享,提供IT课程,电子商务,产品经理,平面设计,交互设计,UI设计,大数据云计算,JAVA,PHP,android开发,ios开发'
]);

$this->params['breadcrumbs'][] = $this->title;
$this->registerCssFile('/css/search/autocomplete.css');
$this->registerCssFile('/css/search/style.css');
?>
<section class="container">

	<div class="col-sm-12 module_cont module_tabs animate"
		data-anim-type="fadeInUp" data-anim-delay="300">
		<a href="/needs/create.html"
			class=" shortcode_button btn_small btn_type7"><i class="icon-leaf"></i>创建需求课程</a>
		<div class="shortcode_tabs type1">
			<div class="all_head_sizer">
				<div class="all_heads_cont"></div>
				<div class="clear"></div>
			</div>
			<div class="all_body_sizer">
				<div class="all_body_cont"></div>
			</div>
			<div class="shortcode_tab_item_title expand_yes">所有需求课程列表</div>
			<div class="shortcode_tab_item_body tab-content clearfix">
				<div class="ip">
					<div class="tab_content">
                                                <?php if(!empty($model)):?>
                                                <?php foreach($model as $val):?>
                                                	<div class="item_tab">
							<img src="/images/logo.png" alt="" />
							<h3>
								<a href="/needs/view/<?=$val['id']?>.html"><?=$val['name']?></a>
							</h3>
							<p><?=mb_strimwidth(strip_tags($val['message']), 0,80,'...','utf-8')?></p>
							<div class="clear"></div>
						</div>                                                  
                                               
                                                <?php endforeach;?>
                                                <?php endif;?>
                                                 </div>
				</div>
			</div>

			<div class="clear"></div>
		</div>
	</div>

</section>